const authLinks = new Map()

// 4s店
authLinks.set('CarStore', {
  orderLinks: [
    {
      path: '/pages_order/orderAdmin/orderAdmin',
      label: '车辆订单',
      icon: 'iconcheliangdingdan',
      color: '#ffab24',
    },
    {
      path: '/pages_order/carGoodsOrder/orderManage/orderManage',
      label: '车品订单',
      icon: 'iconjingpin',
      color: '#ffab24',
    },
    {
      path:
        '/pages_order/accessoryOrder/accessoryOrderList/accessoryOrderList?tab=0',
      label: '配件订单',
      icon: 'iconpeijiandingdan',
      color: '#ffab24',
    },
    // {
    //   path: '#',
    //   label: '物流订单',
    //   icon: 'iconwuliudingdan',
    //   color: '#ffab24',
    // },
  ],
  // 商品/业务管理，各块的链接
  goodsLinks: [
    {
      path: '/pages_carSource/managementOptions/managementOptions',
      label: '车辆管理',
      icon: 'iconcheliangguanli',
      color: '#ffab24',
    },
    {
      path: '/pages_carGoods/carGoodsManage/carGoodsManage',
      label: '车品管理',
      icon: 'iconjingpinguanli',
      color: '#ffab24',
    },
    {
      path: '/pages_findCar/iFoundTheCar/iFoundTheCar',
      label: '我的寻车',
      icon: 'iconwodexunche',
      color: '#ffab24',
    },
    {
      path: '/pages_findAccessory/accessoryIndex/accessoryIndex',
      label: '配件询价',
      icon: 'iconpeijianxunjia1',
      color: '#ffab24',
    },
  ],
  // 推广服务
  promotionServerLinks: [
    {
      path: '/pages_common/pages_me/marketing/marketing',
      label: '创意海报',
      icon: 'iconchuangyihaibao',
      color: '#ffab24',
    },
    // {
    //   path: '#',
    //   label: '经济服务商',
    //   icon: 'iconjingjifuwushang',
    //   color: '#ffab24',
    // },
  ],
})

// 主机厂
authLinks.set('Factory', {
  orderLinks: [
    {
      path: '/pages_order/orderAdmin/orderAdmin',
      label: '车辆订单',
      icon: 'iconcheliangdingdan',
      color: '#ffab24',
    },
    // {
    //   path: '#',
    //   label: '物流订单',
    //   icon: 'iconwuliudingdan',
    //   color: '#ffab24',
    // },
  ],
  // 商品/业务管理，各块的链接
  goodsLinks: [
    {
      path: '/pages_carSource/managementOptions/managementOptions',
      label: '车辆管理',
      icon: 'iconcheliangguanli',
      color: '#ffab24',
    },
    {
      path: '/pages_findCar/iFoundTheCar/iFoundTheCar',
      label: '我的寻车',
      icon: 'iconwodexunche',
      color: '#ffab24',
    },
  ],
  // 推广服务
  promotionServerLinks: [
    {
      path: '/pages_common/pages_me/marketing/marketing?active=1',
      label: '店铺海报',
      icon: 'icondianpu',
      color: '#ffab24',
    },
    {
      path: '/pages_common/pages_me/marketing/marketing?active=2',
      label: '单品海报',
      icon: 'iconshangpin',
      color: '#ffab24',
    },
    {
      path: '/pages_common/pages_me/marketing/marketing?active=3',
      label: '多品海报',
      icon: 'iconduopin',
      color: '#ffab24',
    },
  ],
})

// 养护门店，自营加盟 - 维保
authLinks.set('BeautyStore', {
  orderLinks: [
    {
      path: '/pages_order/carGoodsOrder/orderManage/orderManage',
      label: '车品订单',
      icon: 'iconjingpin',
      color: '#ffab24',
    },
    {
      path:
        '/pages_order/accessoryOrder/accessoryOrderList/accessoryOrderList?tab=0',
      label: '配件订单',
      icon: 'iconpeijiandingdan',
      color: '#ffab24',
    },
    {
      path: '/pages_afterSales/order/orderList/orderList',
      label: '门店订单',
      icon: 'iconwode-mendiandingdan',
      color: '#ffab24',
    },
  ],
  // 商品/业务管理，各块的链接
  goodsLinks: [
    {
      path: '/pages_carGoods/carGoodsManage/carGoodsManage',
      label: '车品管理',
      icon: 'iconjingpinguanli',
      color: '#ffab24',
    },
    {
      path: '/pages_findAccessory/accessoryIndex/accessoryIndex',
      label: '配件询价',
      icon: 'iconpeijianxunjia1',
      color: '#ffab24',
    },
    // {
    //   path: '#',
    //   label: '维保管理',
    //   icon: 'iconweibaoguanli',
    //   color: '#ffab24',
    // },
  ]
})

// 美护宝，经销商
authLinks.set('RepairStore', {
  orderLinks: [
    {
      path: '/pages_order/carGoodsOrder/orderManage/orderManage',
      label: '车品订单',
      icon: 'iconjingpin',
      color: '#ffab24',
    },
    {
      path:
        '/pages_order/accessoryOrder/accessoryOrderList/accessoryOrderList?tab=0',
      label: '配件订单',
      icon: 'iconpeijiandingdan',
      color: '#ffab24',
    },
  ],
  // 商品/业务管理，各块的链接
  goodsLinks: [
    {
      path: '/pages_carGoods/carGoodsManage/carGoodsManage',
      label: '全部车品',
      icon: 'iconjingpinguanli',
      color: '#ffab24',
    },
    {
      path: '/pages_carGoods/carGoodsManage/carGoodsManage?status=1',
      label: '出售中的车品',
      icon: 'iconchushouzhongdejingpin',
      color: '#ffab24',
    },
    {
      path: '/pages_carGoods/carGoodsManage/carGoodsManage?status=2',
      label: '已下架车品',
      icon: 'iconyixiajiajingpin',
      color: '#ffab24',
    },
  ],
  // 推广服务
  promotionServerLinks: [
    {
      path: '/pages_common/pages_me/marketing/marketing',
      label: '创意海报',
      icon: 'iconchuangyihaibao',
      color: '#ffab24',
    },
    // {
    //   path: '#',
    //   label: '经济服务商',
    //   icon: 'iconjingjifuwushang',
    //   color: '#ffab24',
    // },
  ],
})

// 根据传入的权限获取相应的内容
export function getAuthLinks(auth) {
  return authLinks.get(auth)
}
